<?php echo $this->fetch('member.header.html'); ?>
<style type="text/css">
.public {width:98%; margin: 0 auto; padding: 10px 0; overflow: hidden;}
.message {width: 100%; overflow: hidden; margin-bottom: 10px;}
.message_line {padding-bottom: 1px; border-bottom: 2px solid #e2e2e2;}
.message h2 {width: 100%; overflow: hidden; font-weight: normal; border-top: 2px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; position: relative; background: #f5f5f5;}
.message h2 span {float: left; padding: 8px 0 8px 15px; width: 680px; overflow: hidden;}
.message .delete { padding-left: 25px; color: #919191; background: url(<?php echo $this->res_base . "/" . 'images/member/ico.gif'; ?>) no-repeat 10px -631px; position: absolute; top: 7px; right: 15px; }
.message .delete:hover {color: #ff4f01;}
.message_con {width: 100%; overflow: hidden; padding: 15px; border-bottom: 1px solid #e2e2e2;}
.message_con .user {float: left; width: 160px; overflow: hidden;}
.message_con .user p {float: left; width: 50px; height: 50px; overflow: hidden; background: #eee;}
.message_con .user h3 {float: right; width: 98px; margin-left: 10px; overflow: hidden; display: inline; font-weight: normal; font-size: 12px; line-height: 20px; color: #929292;}
.message_con .user span {color: #5ca438;}
.message_con .txt {float: right; width: 558px; overflow: hidden; color: #666;}
.message dl {padding-top: 15px;}
.message dt {float: left; padding-left: 15px; width: 50px;}
.message dd {float: left;}
.message dd textarea {width: 400px; height: 90px; overflow: auto;}
.message dd p {margin-bottom: 10px;}
.message dd .btn { border: 0; width: 120px; height: 32px; background: url(<?php echo $this->res_base . "/" . 'images/member/btn.gif'; ?>) no-repeat 0 -253px; cursor: pointer; font-weight: bold; color: #3f3d3e; }
/* short message instrunction */
#short_msg_desc {margin-left:80px;margin-top:10px;}
#short_msg_desc a {color:#0099CC;}
#short_msg_desc div {display:none;color:#646665;border:1px solid #CCCCCC;padding:5px;width:340px;background-color:#F5F5F5;line-height:25px;}
.member_no_record{color: #F00; padding: 35px 0px 5px 0px; text-align:center;font-size:14px;font-family:'Microsoft Yahei'}
</style>
<div class="content_color">
<div class="content">
    <?php echo $this->fetch('member.menu.html'); ?>
    <div id="right">
        <?php echo $this->fetch('member.submenu.html'); ?>
        <div class="wrap">
            <div class="public">
                <div class="message message_line">
                    <?php if ($this->_var['box'] != 'announcepm'): ?>
                    <h2>
                        <span>&nbsp;</span>
                        <a class="delete" href="javascript:drop_confirm('您确定要删除它吗？\n\n注意：删除后不可恢复！\n\n不想删除请点击取消', 'index.php?app=message&amp;act=drop_relate&amp;back=<?php echo $this->_var['box']; ?>&amp;msg_id=<?php echo $this->_var['message']['msg_id']; ?>');">删除</a>    
                    </h2>
                    <?php else: ?>
                    <h2 class="message_line"></h2>
                    <?php endif; ?>
                    <div class="message_con">
                        <div class="user">
                            <p><img src="<?php echo $this->_var['message']['portrait']; ?>" width="50" height="50" alt="" /></p>
                            <h3><span><?php echo htmlspecialchars($this->_var['message']['user_name']); ?></span><br /><?php echo local_date("Y-m-d H:i",$this->_var['message']['add_time']); ?></h3>
                        </div>
                        <div class="txt"><?php echo call_user_func("short_msg_filter",$this->_var['message']['content']); ?></div>
                    </div>
                    <?php if ($this->_var['box'] == 'privatepm'): ?>
                    <?php $_from = $this->_var['replies']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'reply');if (count($_from)):
    foreach ($_from AS $this->_var['reply']):
?>
                    <div class="message_con">
                        <div class="user">
                            <p><img src="<?php echo $this->_var['reply']['portrait']; ?>" width="50" height="50" alt="" /></p>
                            <h3><span><?php echo htmlspecialchars($this->_var['reply']['user_name']); ?></span><br /><?php echo local_date("Y-m-d H:i",$this->_var['reply']['add_time']); ?></h3>
                        </div>
                        <div class="txt"><?php echo call_user_func("short_msg_filter",$this->_var['reply']['content']); ?></div>
                    </div>
                    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                    <?php endif; ?>
                </div>
                <?php if ($this->_var['box'] == 'privatepm'): ?>
                <div class="message">
                    <h2><span><strong>回复</strong></span></h2>
                    <dl>
                        <form method="post" enctype="multipart/form-date">
                        <dt>内容: </dt>
                        <dd>
                            <p><textarea class="text" name="msg_content"></textarea></p>
                            <div id="short_msg_desc" style="margin-left:0px; margin-bottom:10px;"><a href="javascript:;" id="msg_instrunction">短消息使用格式?</a>
                                <div>图片标签：[img]http://www.moonyes.com/images/logo.gif[/img]<br/>超链接标签：[url=http://www.moonyes.com]官方网站[/url]</div>
                            </div>
                            <p><input type="submit" class="btn" value="提交" /></p>
                        </dd>
                        </form>
                    </dl>
               </div>
              <?php endif; ?>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
</div>
<?php echo $this->fetch('footer_member.html'); ?>
